import request from '@/utils/request'

// 查询付款申请单列表
export function listApplication(query) {
  return request({
    url: '/fina/pay/application/list',
    method: 'get',
    params: query
  })
}

// 查询付款申请单详细
export function getApplication(serialNum) {
  return request({
    url: '/fina/pay/application/' + serialNum,
    method: 'get'
  })
}

// 新增付款申请单
export function addApplication(data) {
  return request({
    url: '/fina/pay/application',
    method: 'post',
    data: data
  })
}

// 修改付款申请单
export function updateApplication(data) {
  return request({
    url: '/fina/pay/application',
    method: 'put',
    data: data
  })
}

// 删除付款申请单
export function delApplication(serialNum) {
  return request({
    url: '/fina/pay/application/' + serialNum,
    method: 'delete'
  })
}
// 同步
export function payApplicationSync() {
  return request({
    url: '/fina/pay/application/sync',
    method: 'get'
  })
}
